/*
 * Copyright 2000 the original author or authors.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef _WT_UPLOAD_H
#define _WT_UPLOAD_H

#include "apreq.h"
#include <tcl.h>

void WtUploadSettingsUsage(Tcl_Interp *interp, Tcl_Obj *cmd);
int WtUploadSettingsCmd(ClientData clientData, Tcl_Interp *interp,
  int objc, Tcl_Obj *const objv[]);
Tcl_Obj *WtNewUploadObj(ApacheUpload *item, Tcl_Interp *interp);
Tcl_Obj *WtUploadGetPoperty(Tcl_Obj *upload, const char *key,
  Tcl_Interp *interp);
int WtUploadSetProperty(Tcl_Obj *upload, const char *key,
  Tcl_Obj *val, Tcl_Interp *interp);
Tcl_Obj *WtUploadGetName(Tcl_Obj *upload, Tcl_Interp *interp);
int WtUploadSetName(Tcl_Obj *upload, Tcl_Obj *val, Tcl_Interp *interp);
Tcl_Obj *WtUploadGetFileName(Tcl_Obj *upload, Tcl_Interp *interp);
int WtUploadSetFileName(Tcl_Obj *upload, Tcl_Obj *val, Tcl_Interp *interp);
Tcl_Obj *WtUploadGetPath(Tcl_Obj *upload, Tcl_Interp *interp);
int WtUploadSetPath(Tcl_Obj *upload, Tcl_Obj *val, Tcl_Interp *interp);
Tcl_Obj *WtUploadGetContentType(Tcl_Obj *upload, Tcl_Interp *interp);
int WtUploadSetContentType(Tcl_Obj *upload, Tcl_Obj *val, Tcl_Interp *interp);
Tcl_Obj *WtUploadGetSize(Tcl_Obj *upload, Tcl_Interp *interp);
int WtUploadSetSize(Tcl_Obj *upload, Tcl_Obj *val, Tcl_Interp *interp);
Tcl_Obj *WtUploadGetChannel(Tcl_Obj *upload, Tcl_Interp *interp);
int WtUploadSetChannel(Tcl_Obj *upload, Tcl_Obj *val,
  Tcl_Interp *interp);
Tcl_Channel WtCreateUploadChannel(ApacheUpload *item, Tcl_Interp *interp);
int WtUploadsCmd(ClientData clientData, Tcl_Interp *interp,
  int objc, Tcl_Obj *const objv[]);
int WtUploadCmd(ClientData clientData, Tcl_Interp *interp, int objc,
  Tcl_Obj *const objv[]);
void WtUploadUsage(Tcl_Interp *interp, Tcl_Obj *cmd);
void WtInitUploadCommands(Tcl_Interp *interp);
Tcl_Obj *WtUploadCmdGetVal(Tcl_Obj *val, Tcl_Interp *interp);

#endif /* !_WT_UPLOAD_H */
